package com.wise.summer.v1.cms.content.successcolumn;

import com.wise.entities.content.SuccessArticleColumn;
import com.wise.framework.annotations.ApiInfo;
import com.wise.framework.annotations.Publish;
import com.wise.framework.annotations.validation.AssertEnum;
import com.wise.framework.annotations.validation.NotBlank;
import com.wise.framework.annotations.validation.NotNull;
import com.wise.framework.summer.BasicSummer;
import com.wise.model.content.enums.ArticleColumnShowStatus;
import lombok.Getter;
import lombok.Setter;

import static com.wise.model.content.ContentErrMsgs.Err_001600250003;
import static com.wise.model.content.ContentErrMsgs.Err_001600250010;
import static com.wise.model.content.ContentErrMsgs.Err_001600250011;
import static com.wise.model.content.ContentErrMsgs.Err_003600250016;

@Setter
@Getter
@Publish
@ApiInfo("新增成功案例栏目")
public class AddSuccessColumn extends BasicSummer<SuccessArticleColumn> {

	@ApiInfo("成功案例栏目名")
	@NotBlank(msg = Err_001600250010)
	private String columnName;

	@ApiInfo("是否显示")
	@NotNull(msg = Err_001600250011)
	@AssertEnum(enumClass = ArticleColumnShowStatus.class, msg = Err_003600250016)
	private Integer showState;

	@ApiInfo("排序")
	@NotNull(msg = Err_001600250003)
	private Integer sort;


	@ApiInfo("栏目自定义路径")
	private String alias;

}
